namespace EyeOpen.DddOrm.Domain.Factories
{
	using System.Collections.Generic;

	using EyeOpen.Domain;

	public static class ContentFactory
	{
		public static Content Create(string title, string description, IEnumerable<Category> categoryList)
		{
			var content =
				new Content { Title = title, Description = description }.SetId();

			content.AddCategoryList(categoryList);

			return content;
		}
	}
}